﻿using System.Windows;
using HappyBa.Core.Interfaces;

namespace HappyBa.Dialogs
{
    /// <summary>
    /// Interaction logic for SettingsDialog.xaml
    /// </summary>
    public partial class SettingsDialog
    {
        private readonly IDataCollector dataCollector;

        public SettingsDialog()
        {
            InitializeComponent();
            var container = ((MainWindow)Application.Current.MainWindow).Container;
            dataCollector = container.GetInstance<IDataCollector>();
        }

        public void CollectClick(object sender, RoutedEventArgs e)
        {
            dataCollector.Collect();
        }

    }
}
